package com.sh.data.engine.domain.common.model.domain;

public class EdgeRelation {
    private String id;

    private String sourceId;

    private String targetId;

    public void setId(String id) {
        this.id = id;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof EdgeRelation))
            return false;
        EdgeRelation other = (EdgeRelation) o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$sourceId = getSourceId(), other$sourceId = other.getSourceId();
        if ((this$sourceId == null) ? (other$sourceId != null) : !this$sourceId.equals(other$sourceId))
            return false;
        Object this$targetId = getTargetId(), other$targetId = other.getTargetId();
        return !((this$targetId == null) ? (other$targetId != null) : !this$targetId.equals(other$targetId));
    }

    protected boolean canEqual(Object other) {
        return other instanceof EdgeRelation;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $sourceId = getSourceId();
        result = result * 59 + (($sourceId == null) ? 43 : $sourceId.hashCode());
        Object $targetId = getTargetId();
        return result * 59 + (($targetId == null) ? 43 : $targetId.hashCode());
    }

    public String toString() {
        return "EdgeRelation(id=" + getId() + ", sourceId=" + getSourceId() + ", targetId=" + getTargetId() + ")";
    }

    public String getId() {
        return this.id;
    }

    public String getSourceId() {
        return this.sourceId;
    }

    public String getTargetId() {
        return this.targetId;
    }
}
